<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  <table>
  	<tr>
  		<td>专业编号</td>
  		<td>专业名称</td>
  		<td>专业价格</td>
  		<td>交学费</td>
  		<td>住宿费</td>
  		<td>学杂费</td>
  		<td>专业详情</td>
  		<td>课程id</td>
  	</tr>
  	<tr>
  <c:forEach var="major" items="${major }">
  	<td><input value="${major.mid }"></td>
  	<td><input value="${major.mname }"></td>
  	<td><input value="${major.mprice }"></td>
  	<td><input value="${major.tprice }"></td>
  	<td><input value="${major.aprice }"></td>
  	<td><input value="${major.lprice }"></td>
  	<td><input value="${major.mdecx }"></td>	
  	<td><input value="${major.cid }"></td>	
  </c:forEach>
  </tr>
  </table>
  
  </body>
</html>